package toman;

/**
 * This is the base class for query engines that are capable of creating queries only.
 * <br>
 * User: zslajchrt
 * Date: 2.5.11
 * Time: 16:58
 */
public abstract class EngineForCreatingQueriesOnly implements QueryEngine {
    public <T, K> Object findInitObject(TOMan toman, Class<T> toClass, K toId) throws Exception {
        throw new UnsupportedOperationException();
    }

    public <T> QueryForUpdate createQueryForUpdate(TOMan toman, T to) throws Exception {
        throw new UnsupportedOperationException();
    }

    public <T, K> boolean canFindInitObject(TOMan toman, Class<T> toClass, K toId) {
        return false;
    }

    public <T> boolean canCreateQueryForUpdate(TOMan toman, T to) {
        return false;
    }

}
